from typing import Any

from django import template
from django.utils.safestring import SafeString

from menu import utils


register = template.Library()

@register.simple_tag
def draw_menu(menu_name: str) -> SafeString:
    """ Рисуем указанное меню """

    return utils.MenuUtils().get_initial_menu_format_as_html(menu_name)


@register.simple_tag
def draw_list_of_menu_names() -> SafeString:
    """ Рисуем список из названий меню """

    return utils.MenuUtils().get_list_of_menu_names_as_html()
